package com.zzq.demo.h2.rest;

import com.zzq.demo.h2.service.StaffService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 平台名-子平台名-模块名:
 *
 * <p>//TODO 类描述
 *
 * @author wallace.zhao 2020-03-03
 */
@RestController
@RequestMapping("")
public class IndexController {

    @Resource
    private StaffService staffService;

    @GetMapping(value = "staff")
    public Object staffList() {
        return staffService.list();
    }

    @GetMapping("hello")
    public String hello() {
        return "Nice to meet you!";
    }
}
